import { request } from "@/utils/request";

// 分类相关API
export default {
	page() {
		return request({
			url: '/mall/c/address/page',
			method: 'GET',
			data: {
				current: 1,
				size: 100,
			}
		})
	},

	submit(data) {
		return request({
			url: `/mall/c/address/${data.id ? 'edit' : 'add'}`,
			method: 'POST',
			data
		})
	},

	del(ids) {
		return request({
			url: '/mall/c/address/delete',
			method: 'POST',
			data: { ids }
		})
	},
}